using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class MdCustomerTable : TableInfo
	{
		public const string C_TABLENAME = "Md_Customer"; 

		public const string C_CUSTOMERID = "CUSTOMERID";
		public const string C_CUSTOMERNAME = "CUSTOMERNAME";
		public const string C_ADDR = "ADDR";
		public const string C_CUSTOMERFROM = "CUSTOMERFROM";
		public const string C_CUSTOMERSCALER = "CUSTOMERSCALER";
		public const string C_ATTENTION = "ATTENTION";
		public const string C_MASTERPERSON = "MASTERPERSON";
		public const string C_STATUS = "STATUS";
		public const string C_CREATEDATE = "CREATEDATE";
		public const string C_MODIFYUSERNAME = "MODIFYUSERNAME";
		public const string C_CREATEUSERID = "CREATEUSERID";
		public const string C_CREATEUSERNAME = "CREATEUSERNAME";
		public const string C_MODIFYDATE = "MODIFYDATE";
		public const string C_MODIFYUSERID = "MODIFYUSERID";
				
		public MdCustomerTable()
		{
			_tableName ="Md_Customer";
		}

		protected static MdCustomerTable _current;

		public static MdCustomerTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new MdCustomerTable();

			_current.Add(C_CUSTOMERID, new ColumnInfo(C_CUSTOMERID, "", true, typeof(String)));
			_current.Add(C_CUSTOMERNAME, new ColumnInfo(C_CUSTOMERNAME, "", false, typeof(String)));
			_current.Add(C_ADDR, new ColumnInfo(C_ADDR, "", false, typeof(String)));
			_current.Add(C_CUSTOMERFROM, new ColumnInfo(C_CUSTOMERFROM, "", false, typeof(String)));
			_current.Add(C_CUSTOMERSCALER, new ColumnInfo(C_CUSTOMERSCALER, "", false, typeof(String)));
			_current.Add(C_ATTENTION, new ColumnInfo(C_ATTENTION, "", false, typeof(String)));
			_current.Add(C_MASTERPERSON, new ColumnInfo(C_MASTERPERSON, "", false, typeof(String)));
			_current.Add(C_STATUS, new ColumnInfo(C_STATUS, "", false, typeof(String)));
			_current.Add(C_CREATEDATE, new ColumnInfo(C_CREATEDATE, "", false, typeof(DateTime?)));
			_current.Add(C_MODIFYUSERNAME, new ColumnInfo(C_MODIFYUSERNAME, "", false, typeof(String)));
			_current.Add(C_CREATEUSERID, new ColumnInfo(C_CREATEUSERID, "", false, typeof(String)));
			_current.Add(C_CREATEUSERNAME, new ColumnInfo(C_CREATEUSERNAME, "", false, typeof(String)));
			_current.Add(C_MODIFYDATE, new ColumnInfo(C_MODIFYDATE, "", false, typeof(DateTime?)));
			_current.Add(C_MODIFYUSERID, new ColumnInfo(C_MODIFYUSERID, "", false, typeof(String)));
						
		}

		public ColumnInfo CUSTOMERID
		{
			get { return this[C_CUSTOMERID];}
		}

		public ColumnInfo CUSTOMERNAME
		{
			get { return this[C_CUSTOMERNAME];}
		}

		public ColumnInfo ADDR
		{
			get { return this[C_ADDR];}
		}

		public ColumnInfo CUSTOMERFROM
		{
			get { return this[C_CUSTOMERFROM];}
		}

		public ColumnInfo CUSTOMERSCALER
		{
			get { return this[C_CUSTOMERSCALER];}
		}

		public ColumnInfo ATTENTION
		{
			get { return this[C_ATTENTION];}
		}

		public ColumnInfo MASTERPERSON
		{
			get { return this[C_MASTERPERSON];}
		}

		public ColumnInfo STATUS
		{
			get { return this[C_STATUS];}
		}

		public ColumnInfo CREATEDATE
		{
			get { return this[C_CREATEDATE];}
		}

		public ColumnInfo MODIFYUSERNAME
		{
			get { return this[C_MODIFYUSERNAME];}
		}

		public ColumnInfo CREATEUSERID
		{
			get { return this[C_CREATEUSERID];}
		}

		public ColumnInfo CREATEUSERNAME
		{
			get { return this[C_CREATEUSERNAME];}
		}

		public ColumnInfo MODIFYDATE
		{
			get { return this[C_MODIFYDATE];}
		}

		public ColumnInfo MODIFYUSERID
		{
			get { return this[C_MODIFYUSERID];}
		}

		
	}
}


